
<!DOCTYPE html>
<html lang="en">
<script>
    var code="<?php  echo $code; ?>";
    var state="<?php echo $state; ?>";
    var sign="<?php  echo $sign; ?>";
    sessionStorage.setItem('code',code);
    if(sessionStorage.getItem("once")){

    }else{
        sessionStorage.setItem("path",state);
        sessionStorage.setItem("once",1)
    }
</script>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <meta https-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta https-equiv="Pragma" content="no-cache" />
    <meta https-equiv="Expires" content="0" />
    <link rel="stylesheet" type="text/css" href="./dist/source/swiper-3.3.1.min.css"/>
    <link rel="stylesheet" type="text/css" href="./dist/source/common.css"/>
    <link rel="stylesheet" type="text/css" href="./dist/bundle.css"/>
    <script src="https://webapi.amap.com/maps?v=1.3&key=30fa58fbca1b4259a7940f9c44136290"></script>
    <script src="./dist/source/axios.min.js"></script>
    <script src="./dist/source/swiper-3.3.1.min.js"></script>
    <script src="./dist/source/vue-router.js"></script>
    <script src="./dist/source/vue-resource.min.js"></script>
    <script src="./dist/source/tripledes2.js"></script>
    <script src="./dist/source/cipher-core.js"></script>
    <script src="./dist/source/core.js"></script>
    <script src="./dist/source/mode-ecb.js"></script>
    <script src="./dist/source/md5.js"></script>
    <script src="./dist/source/ciphertext.js"></script>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
    <script src="https://www.sobot.com/chat/frame/js/entrance.js?sysNum=8aa3c6e204e843ce93d80c7b9208d4e6"
     id="zhichiScript" data-args="manual=true"
    ></script>
    <title>砍好货</title>
</head>

<body>
<div id="app"></div>
<script src="./dist/source/common.js"></script>
<script src="./dist/build.js"></script>
<script>
    /*jsapi*/
    var link=encodeURIComponent(location.href.split('#')[0]);
    var values=encodeURIComponent(JSON.stringify({"link":link,"token":localStorage.getItem('token')})),
        keys=demo(values);
    axios.get('/Home/wx/GetJSAPI',{
        params:{
            value:values,
            key:keys
        }
    })
        .then(function(res) {
            wx.config({
                debug: false,
                appId: res.data.data.appId,
                timestamp: res.data.data.timestamp,
                nonceStr: res.data.data.nonceStr,
                signature: res.data.data.signature,
                jsApiList: [
                    // 所有要调用的 API 都要加到这个列表中
                    'onMenuShareTimeline',
                    'onMenuShareAppMessage',
                    'chooseImage',
                    'previewImage',
                    'uploadImage',
                    'downloadImage',
                    'hideMenuItems',
                    'showMenuItems',
                    'closeWindow',
                    "chooseWXPay",
                    "hideAllNonBaseMenuItem",
                    "hideOptionMenu",
                    "showOptionMenu",
                    "showAllNonBaseMenuItem"
                ]
            });
        }.bind(this))
        .catch(function (error) {
            console.log(error);
        });

</script>
<script type="text/javascript">
    // var zhiManager = (getzhiSDKInstance());
    // zhiManager.set('userinfo', { //设置用户信息
    //     partnerId:'1123',   //用户对接ID，用户唯一标示，通常是企业自有用户系统中的userId
    //     tel: '',   //电话或手机
    //     email: '',   //邮箱
    //     uname: 'R',   //昵称
    //     visitTitle: '',   //对话页标题，若不传入系统将获取用户打开咨询组件时所在页面的标题
    //     visitUrl: '',   //对话页URL，若不传入系统将获取用户打开咨询组件时所在页面的URL
    //     face: 'http://thirdwx.qlogo.cn/mmopen/PiajxSqBRaEJy7g0Tptry9PejXcJkNb233zdwLIUs4Gblr7RkIowBIKgcUg7EpWF46YW2XtgnauS5fdGmoq0GJA/132',   //头像URL
    //     realname: '',   //真实姓名
    //     weibo: '',   //微博账号
    //     weixin: '',   //微信账号
    //     qq: '',   //QQ号
    //     sex: '1', //0 女 1 男
    //     birthday: '',   //生日，如“1990-01-01”
    //     remark: '',   //用户的备注信
    //     params: '{"等级":"VIP用户","客户状态":"意向客户"}'   //自定义用户信息字段
    // });
</script>
</body>
</html>
